<script setup lang="ts">
import {useRouter,useRoute} from 'vue-router'

const router = useRouter()
const route = useRoute()
console.log(route.query);

</script>

<template>
    个人中心
    <button @click="()=>router.push({name:'home',params:{id:777}})">跳转到home页</button>
</template>

<style scoped>
</style>
 